//
//  NetAPI+HomeAPI.h
//  AppleMarket
//
//  Created by yangy on 19/10/2018.
//  Copyright © 2018 szgsy. All rights reserved.
//

#import "NetRequest.h"

NS_ASSUME_NONNULL_BEGIN

@interface NetRequest (HomeAPI)

/**
 获取banner图
 */
+ (void) request_GetBannerWithCompleteHandler:(void (^)(id responseObj)) completeHandler
                                         fail:(void (^)(NSError *error)) failHandler;

/**
 获取首页公告
 */
+ (void) request_GetNewsListWithCompleteHandler:(void (^)(id responseObj)) completeHandler
                                         fail:(void (^)(NSError *error)) failHandler;

/**
 获取新闻列表信息
 */
+ (void) request_GetNewsListWithPageIndex:(NSInteger) index
                                   typeId:(NSInteger) typeId
                          completeHandler:(void (^)(id responseObj)) completeHandler
                                     fail:(void (^)(NSError *error)) failHandler;
@end

NS_ASSUME_NONNULL_END
